﻿using System;
using DataStore;
using NHibernate.Cfg;

namespace DatabaseGenerator
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("======================================================");
            Console.WriteLine("=  BookCataloger: Empty database generator tool      =");
            Console.WriteLine("======================================================");

            IDatabase database = new Database();
            string dataPath = database.EmptyDatabasePath;
            Console.WriteLine("Database set to {0}", dataPath);

            Console.Write("Writing database schema...\t");
            database.GenerateEmptyDatabase();
            
            Console.ForegroundColor = ConsoleColor.Green;
            Console.WriteLine("DONE");
            Console.ForegroundColor = ConsoleColor.Gray;
        }
    }
}
